WeDevs\Dokan\REST\ProductController D

Total Complexity 227
Dependencies 11
Dependents 0
Total lines 2,262
Lines of code 1,655
Logical lines of code 447
Comment lines 391
Methods 36
Properties 4

Methods 36

Method Rating Maintainability Complexity Lines of code
prepare_object_for_database()
D
15
79 225
get_item_schema()
D
15
1 611
prepare_objects_query()
C
34 25 89
set_product_images()
A
43 15 47
prepare_data_for_response()
A
33 12 89
register_routes()
A
30 1 198
get_attributes()
A
45 9 41
save_product_shipping_data()
A
51 8 27
validation_before_create_item()
A
50 8 25
get_images()
S
45 6 44
save_downloadable_files()
S
55 5 18
validation_before_update_item()
S
57 5 15
get_default_attributes()
S
54 4 21
validation_before_delete_item()
S
58 4 13
get_attribute_options()
S
61 4 12
get_top_rated_product()
S
58 3 15
get_latest_product()
S
58 3 15
get_featured_product()
S
58 3 15
get_best_selling_product()
S
58 3 15
get_related_product()
S
60 3 13
get_downloads()
S
61 3 13
get_attribute_taxonomy_name()
S
61 3 12
prepare_links()
S
58 2 16
save_default_attributes()
S
68 3 7
save_taxonomy_terms()
S
65 3 9
get_taxonomy_terms()
S
62 2 11
get_attribute_taxonomy_label()
S
73 1 5
create_product_permissions_check()
S
80 1 3
get_object()
S
80 1 3
get_product_summary()
S
66 1 8
get_product_summary_permissions_check()
S
80 1 3
delete_product_permissions_check()
S
80 1 3
update_product_permissions_check()
S
80 1 3
get_single_product_permissions_check()
S
80 1 3
get_multistep_categories()
S
72 1 5
get_product_permissions_check()
S
80 1 3